#!/bin/sh
cat 0001-set-default-base.patch | patch -p1
cd src
make bin/undionly.kpxe EMBED=script.ipxe
make bin/ipxe.usb EMBED=script.ipxe
make bin/ipxe.lkrn EMBED=script.ipxe
cp bin/undionly.kpxe ../tftp
cp bin/ipxe.lkrn ../tftp
cp bin/ipxe.usb ../tftp
exit